package cn.wapache.timed;

import java.io.Serializable;

import cn.wapache.timed.serialization.Serializer;

public class Job implements Serializable {

	private static final long serialVersionUID = -8251220376207728736L;
	
	String id;
	String name;
	String description;
	boolean stateful = false;
	boolean enabled = true;
	
	// 运行在容器里,使用named查找实例
	String named;
	// 非容器,使用类名查找实例
	String clazz;
	// 调用方法名
	String method;
	
	public String getId() { 
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public boolean isStateful() {
		return stateful;
	}
	public void setStateful(boolean stateful) {
		this.stateful = stateful;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public String getNamed() {
		return named;
	}
	public void setNamed(String named) {
		this.named = named;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	
	
}
